package com.yanqu.road.entity.enums.activity.wealthscroll;

public enum eWealthScrollBuyLevel {

    free("免费等级",0),

    advance("进阶",101),

    luxury("豪华",102),

    ;

    private String name;
    private int value;

    eWealthScrollBuyLevel(String name, int value) {
        this.name = name;
        this.value = value;
    }

    public static eWealthScrollBuyLevel valueOf(int value) {
        for (eWealthScrollBuyLevel level : eWealthScrollBuyLevel.values()) {
            if (level.value == value) {
                return level;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public int getValue() {
        return value;
    }
}
